About 658 letters

About 3 minutes

#vars

Description: Get the attribute dictionary of an object (by calling the object's __dict__ method).

def vars(): ''' Get the attribute dictionary of the current object :return: the attribute dictionary of the current object ''' def vars(obj): ''' Get the attribute dictionary of an object :param obj: an object :return: the attribute dictionary of obj '''

Example:

with open(__file__) as fp: print(vars(fp))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Created in 6/9/2025

Updated in 6/9/2025